# Celery 启动文件
from celery import Celery

# 创建 Celery 实例
celery_app = Celery('yili')

# 加载配置文件
celery_app.config_from_object('celery_tasks.config')

# 注册任务
celery_app.autodiscover_tasks(['celery_tasks.sms'])